﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RpgLibrary.SkillClasses
{
    public class SkillData : IRpgDataObject

    {
        #region Field Region

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        public string PrimaryAttribute;
        public Dictionary<string, int> ClassModifiers;
        
        #endregion

        #region Property Region
        #endregion

        #region Constructor Region
        public SkillData()
        {
            ClassModifiers = new Dictionary<string, int>();
        }
        #endregion

        #region Method Region
        #endregion

        #region Virtual Method region
        
        public override string ToString()
        {
            string toString = Name + ", ";
            toString += PrimaryAttribute;
            
            foreach (string s in ClassModifiers.Keys)
                toString += ", " + s + "+" + ClassModifiers[s].ToString();
            
            return toString;
        }

        #endregion
    }
}
